﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LIMS.Web
{
    public partial class AdmTestStuManage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                selStuCount.DataSource = Enumerable.Range(1, 120);
                selStuCount.DataBind();
            }
        }

        protected void btnOK_Click(object sender, EventArgs e)
        {
            if (Session["teacherID"] != null && !string.IsNullOrWhiteSpace(Session.Contents["teacherID"].ToString()))
            {
                Model.Projects pro = new Model.Projects()
                {
                    proDate = DateTime.Parse(txtDatePicker.Text.Trim()),
                    proDetail = txtContent.Text.Trim(),
                    proName = txtProName.Text.Trim(),
                    proTeacherId = Session.Contents["teacherID"].ToString()
                };
                BLL.ProjectManager.AddProject(pro);
                Response.Redirect("AdmTestItemManange.aspx");
            }
        }

       
      
    }
}